package com.fxm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fxm.domain.Record;
import com.fxm.returns.RespTable;
import com.fxm.vo.result.RecordResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 答题记录表 Mapper 接口
 * </p>
 *
 * @author fxm
 * @since 2021-02-04
 */
public interface RecordMapper extends BaseMapper<Record> {

    /**
     * 答题记录数目
     * @param username
     * @return
     */
    Integer count(@Param("username") String username);

    /**
     * 答题记录
     * @param offset
     * @param limit
     * @param username
     * @return
     */
    List<RecordResult> listRecord(@Param("offset") Integer offset, @Param("limit") Integer limit, @Param("username") String username);
}
